
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit"/><!-- 让360浏览器默认选择webkit内核 -->

    <!-- 全局css -->
    <link rel="shortcut icon" href="${ctxPath}/static/favicon.ico">
    <link href="${ctxPath}/static/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="${ctxPath}/static/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="${ctxPath}/static/css/plugins/chosen/chosen.css" rel="stylesheet">
    <link href="${ctxPath}/static/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="${ctxPath}/static/css/plugins/validate/bootstrapValidator.min.css" rel="stylesheet">
    <link href="${ctxPath}/static/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="${ctxPath}/static/css/_fstyle.css" rel="stylesheet">
    <link href="${ctxPath}/static/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="${ctxPath}/static/css/plugins/webuploader/webuploader.css" rel="stylesheet">
    <link href="${ctxPath}/static/css/plugins/ztree/zTreeStyle.css" rel="stylesheet">
    <link href="${ctxPath}/static/css/plugins/bootstrap-treetable/bootstrap-treetable.css" rel="stylesheet"/>
    <!-- <link href="${ctxPath}/static/css/plugins/ztree/demo.css" rel="stylesheet"> -->

    <!-- 全局js -->
    <script src="${ctxPath}/static/js/jquery.min.js?v=2.1.4"></script>
    <script src="${ctxPath}/static/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="${ctxPath}/static/js/plugins/ztree/jquery.ztree.all.min.js"></script>
    <script src="${ctxPath}/static/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
    <script src="${ctxPath}/static/js/plugins/validate/bootstrapValidator.min.js"></script>
    <script src="${ctxPath}/static/js/plugins/validate/zh_CN.js"></script>
    <script src="${ctxPath}/static/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
    <script src="${ctxPath}/static/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="${ctxPath}/static/js/plugins/bootstrap-treetable/bootstrap-treetable.js"></script>
    <script src="${ctxPath}/static/js/plugins/layer/layer.js"></script>
    <script src="${ctxPath}/static/js/plugins/chosen/chosen.jquery.js"></script>
    <script src="${ctxPath}/static/js/plugins/iCheck/icheck.min.js"></script>
    <script src="${ctxPath}/static/js/plugins/laydate/laydate.js"></script>
    <script src="${ctxPath}/static/js/plugins/webuploader/webuploader.min.js"></script>
    <script src="${ctxPath}/static/js/common/ajax-object.js"></script>
    <script src="${ctxPath}/static/js/common/bootstrap-table-object.js"></script>
    <script src="${ctxPath}/static/js/common/tree-table-object.js"></script>
    <script src="${ctxPath}/static/js/common/web-upload-object.js"></script>
    <script src="${ctxPath}/static/js/common/ztree-object.js"></script>
    <script src="${ctxPath}/static/js/common/Feng.js"></script>

    <style type="text/css">
        table{
            width:100px;
            table-layout:fixed;/* 只有定义了表格的布局算法为fixed，下面td的定义才能起作用。 */
        }
        td{
            width:100%;
            word-break:keep-all;/* 不换行 */
            white-space:nowrap;/* 不换行 */
            overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */
            text-overflow:ellipsis;/* 当对象内文本溢出时显示省略标记(...) ；需与overflow:hidden;一起使用*/
        }
    </style>

    <script type="text/javascript">
        Feng.addCtx("${ctxPath}");
        Feng.sessionTimeoutRegistry();
    </script>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <div class="form-horizontal">

                <div class="row">
                    <div class="col-sm-6 b-r">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">创建人姓名</label>
                            <div class="col-sm-9">
                                <input class="form-control" id="name" name="name" type="text" value="${user.name}" readonly>

                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>


                        <div class="form-group">
                            <label class="col-sm-3 control-label">创建人登录名</label>
                            <div class="col-sm-9">
                                <input class="form-control" id="loginName" name="loginName" type="text" value="${user.account}" readonly>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>


                        <div class="form-group">
                            <label class="col-sm-3 control-label">创建日期</label>
                            <div class="col-sm-9">
                                <input class="form-control" id="createtime" name="createtime"  type="text" readonly >
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>


                        <div class="form-group">
                            <label class="col-sm-3 control-label">申请名称</label>
                            <div class="col-sm-9">
                                <input class="form-control" id="applyName" name="applyName"
                                       type="text"
                                >

                            </div>
                        </div>


                    </div>

                    <div class="col-sm-6">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">申请编号</label>
                            <div class="col-sm-9">
                                <input class="form-control" id="applySerial" name="applySerial"
                                       type="text"
                                >

                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>


                        <div class="form-group">
                            <label class="col-sm-3 control-label">单位数</label>
                            <div class="col-sm-9">
                                <input class="form-control" id="count" name="count"
                                       type="text"
                                >

                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>


                        <div class="form-group">
                            <label class="col-sm-3 control-label">钱数</label>
                            <div class="col-sm-9">
                                <input class="form-control" id="money" name="money"
                                       type="text"
                                >

                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>


                        <div class="form-group">
                            <label class="col-sm-3 control-label">申请类型</label>
                            <div class="col-sm-4">
<!--                                <input class="form-control" id="type" name="type" type="text">-->
                                <select class="form-control" id="level1">
                                    <option value="">请选择</option>
                                    <option value="1">一型</option>
                                    <option value="2">二型</option>
                                </select>
                            </div>
                            <div class="col-sm-5">
                                <select class="form-control" id="type" name="type" disabled>
                                </select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>


                    </div>
                </div>

                <div class="row btn-group-m-t">
                    <div class="col-sm-10">

                        <button type="button" class="btn btn-info " onclick="TDApplyInfoDlg.addSubmit()" id="ensure">
                            <i class="fa fa-check"></i>&nbsp;提交
                        </button>


                        <button type="button" class="btn btn-danger " onclick="TDApplyInfoDlg.close()" id="cancel">
                            <i class="fa fa-eraser"></i>&nbsp;取消
                        </button>

                    </div>
                </div>
            </div>

        </div>
    </div>
    <script src="/static/modular/system/tDApply/tDApply_info.js"></script>

</div>
<!--<script src="/static/js/content.js?v=1.0.0"></script>-->
<script>
    $(function () {

        //分别获取年、月、日、时、分、秒
        var myDate = new Date();
        var year = myDate.getFullYear();
        var month = myDate.getMonth() + 1;
        var date = myDate.getDate();
        var hours = myDate.getHours();
        var minutes = myDate.getMinutes();
        var seconds = myDate.getSeconds();

//月份的显示为两位数字如09月
        if (month < 10) {
            month = "0" + month;
        }
        if (date < 10) {
            date = "0" + date;
        }

//时间拼接
        var dateTime = year + "-" + month + "-" + date;
        console.log($("#createtime"))
        $("#createtime").val(dateTime);

        //下拉级联选择
        $("#level1").change(function (){
            var level1=$("#level1").val()
            if(level1==='1'){
                console.log("====")
                $("#type").removeAttr("disabled")
                $("#type").html(" <option value=\"\">请选择</option>\n" +
                    "                                    <option value=\"一一类型\">一一类型</option>\n" +
                    "                                    <option value=\"一二类型\">一二类型</option>"+
                    "                                    <option value=\"一三类型\">一三类型</option>"
                )
            }else if(level1==='2'){
                $("#type").removeAttr("disabled")
                $("#type").html(" <option value=\"\">请选择</option>\n" +
                    "                                    <option value=\"二一类型\">二一类型</option>\n" +
                    "                                    <option value=\"二二类型\">二二类型</option>"+
                    "                                    <option value=\"二三类型\">二三类型</option>"
                )
            }else {
                $("#type").attr("disabled",true)
                $("#type").html("")
            }
        })
    })
</script>
</body>
</html>
